package com.starmark.core.actable.command;

import com.starmark.core.actable.service.SysMysqlCreateTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value = -1)
public class SysMysqlCreateTableCommand implements CommandLineRunner {

    @Autowired
    private SysMysqlCreateTableService sysMysqlCreateTableService;


    @Override
    public void run(String... args) {
        sysMysqlCreateTableService.createMysqlTable();
    }
}
